Skip to content

Instantly share code, notes, and snippets.

@johnsimcall
johnsimcall / 99-pure-storage.butane
Created November 23, 2026 19:04
PX-CSI MachineConfig for multipathd and udev
# butane --files-dir . 99-pure-storage.butane -o 99-pure-storage.machineConfig.yaml
# This file will:
# 1. Target the "worker" servers because thats where VMs will run
# 2. Add the multipath.conf and 99-pure-storage.rules udev files
---
variant: openshift
version: 4.22.0
metadata:
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active November 23, 2026 19:05
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@teknolog1k
teknolog1k / NixOS_UsernameChange.md
Created February 10, 2025 02:58
Instructions on how to change a user's username on NixOS whilst preserving their home directory

Changing a NixOS user's username without breaking everything

A step-by-step guide to not deleting your entire home directory.

Disclaimer:

I do not know what I am doing. I am not some secret Nix expert. Most importantly, I am not immune to things changing unexpectedly and rendering this guide worthless or actively detrimental. By following this guide, you assume the risk of things not working out properly, including, but not limited to:

  • Deleting your home directory
  • Leaving you unable to log in due to no user password being set
  • Things going wrong in new and unexpected ways that neither of us could have reasonably expected
@bpsib
bpsib / BBC-Radio-HLS.m3u
Last active November 23, 2026 18:27 — forked from stengland/BBC-Radio.m3u
BBC Radio Streams
#EXTM3U
#EXTINF:-1,BBC - Radio 1
http://as-hls-ww-live.akamaized.net/pool_01505109/live/ww/bbc_radio_one/bbc_radio_one.isml/bbc_radio_one-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1Xtra
http://as-hls-ww-live.akamaized.net/pool_92079267/live/ww/bbc_1xtra/bbc_1xtra.isml/bbc_1xtra-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1Dance
http://as-hls-ww-live.akamaized.net/pool_62063831/live/ww/bbc_radio_one_dance/bbc_radio_one_dance.isml/bbc_radio_one_dance-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1 Anthems (UK Only)
http://as-hls-uk-live.akamaized.net/pool_11351741/live/uk/bbc_radio_one_anthems/bbc_radio_one_anthems.isml/bbc_radio_one_anthems-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 2
@sadeghbarati
sadeghbarati / YouTube_auto_subscriber.js
Created July 26, 2022 04:07 — forked from FUNExtreme/YouTube_auto_subscriber.js
YouTube Auto Subscriber which can be used to transfer your subscriptions from one account to another.
/*
* DESCRIPTION
* This script will go through all the subscription buttons on the YouTube page you execute it on, and subscribes to the ones that
* you're not subscribed to yet.
* A random delay is added to each subscription request, this is due to the fact that YouTube starts blocking subscriptions after
* a certain number of consecutive requests. Randomising the delays should trick the detection into thinking it's a valid user doing
* the requests.
*
* HOW TO USE
* Navigate to the page containing the channels you would like to subscribe to. (The subscribe button should be visible!)
@marcan
marcan / canon-ef-protocol-notes.md
Last active November 23, 2026 18:19
Canon EF protocol notes

Testing done using a Canon EOS 600D and a Canon EF-S18-55mm f/3.5-5.6 IS II.

Pinout

  1. VBAT
  2. DET (common with P-GND on lens side)
  3. P-GND
  4. VDD
  5. DCL
  6. DLC
@KarlRamstedt
KarlRamstedt / FirstPersonCameraRotation.cs
Created January 8, 2020 10:17
A simple First Person Camera rotation script for Unity.
using UnityEngine;
/// <summary>
/// A simple FPP (First Person Perspective) camera rotation script.
/// Like those found in most FPS (First Person Shooter) games.
/// </summary>
public class FirstPersonCameraRotation : MonoBehaviour {
public float Sensitivity {
get { return sensitivity; }
@dermesser
dermesser / rope.cpp
Last active November 23, 2026 18:15
A simple rope implementation in C++ – should work well enough.
// Licensed under MIT license.
// (c) Lewin Bormann 2014
# include <string>
# include <iostream>
# include <list>
# include <cstring>
# include <algorithm>
using std::string;